/*
 * ikakeibo 0.6.0
 * Copyright (C)2009 wateray and contributors
 * wateray@gmail.com
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

package com.wateray.ipassbook.ui.view.bar;

import javax.swing.JButton;
import javax.swing.JToggleButton;
import javax.swing.JToolBar;

import com.wateray.ipassbook.ui.action.ActionManager;
import com.wateray.ipassbook.ui.action.ShowReceiptAction;

/**
 * @author wateray
 * @create 2009-4-29
 */
public class AppToolBar extends JToolBar{

	/** serialVersionUID */
	private static final long serialVersionUID = -8655459480957754247L;
	
	
	private JButton selectRepository;
	
	/** The show navigator. */
	private JToggleButton showNavigator;
	
	
	/**
	 * Instantiates a new tool bar.
	 */
	public AppToolBar() {
		super();
		//setFloatable(false);
		setButtons();
	}

	private void setButtons() {
		// TODO Auto-generated method stub
		
		selectRepository = new JButton(ActionManager.getAction(ShowReceiptAction.class));
		selectRepository.setText(null);
		this.add(selectRepository);
		
		this.addSeparator();
		
//		showNavigator = new JToggleButton(ActionManager.getAction(ShowReceiptAction.class));
//		showNavigator.setText(null);
//		this.add(showNavigator);
		
	}

	public JButton getSelectRepository() {
		return selectRepository;
	}

	public JToggleButton getShowNavigator() {
		return showNavigator;
	}

}
